package main.model;

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.control.Button;

public class User {
    private final StringProperty  username;
    private final StringProperty  password;
    private final StringProperty  name;
    private final StringProperty  grade;
    private final StringProperty  college;
    private final ObjectProperty  edit;

    public User(String username, String password, String name, String grade, String college, Object edit) {
        this.username = new SimpleStringProperty(username);
        this.password = new SimpleStringProperty(password);
        this.name = new SimpleStringProperty(name);
        this.grade = new SimpleStringProperty(grade);
        this.college = new SimpleStringProperty(college);
        this.edit = new SimpleObjectProperty(edit);
    }
    public void setUsername(String username){this.username.set(username);}
    public String getUsername(){
        return this.username.get();
    }
    public void setPassword(String password){
        this.password.set(password);
    }
    public String getPassword(){
        return this.password.get();
    }
    public void setName(String name){
        this.name.set(name);
    }
    public String getName(){
        return this.name.get();
    }
    public void setGrade(String grade){
        this.grade.set(grade);
    }
    public String getGrade(){
        return this.grade.get();
    }
    public void setCollege(String college){
        this.college.set(college);
    }
    public String getCollege(){
        return this.college.get();
    }
    public void setEdit(Object edit){
        this.edit.set(edit);
    }
    public Object getEdit()
    {
        return this.edit.get();
    }
}



